﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="module.ascx.cs" Inherits="ExtraClub.Web.Modules.dashboard.module" %>
<!-- dashboard -->
<div id="main">
    <div class="dashboard">
        <div class="header">
            <h2>
                <%=SiteContext.Current.Page.Title %></h2>
            <strong class="has-layout">
                <%=WebUtils.GetUIText("Controls/{0}", MainMenu.CurrentItem, "title")%></strong>
        </div>
        <div class="menu">
            <%MainMenu.Items.ForEach(delegate(ExtraClub.Domain.Entity.MenuItem item) {
                  string current = "";
                  string style = "";
                  string href = string.Format("href={0}", item.Url);
                  if (item.Current) {
                      style = string.Format("style='background:{0}'", WebUtils.GetUIStyle("Controls/{0}", item.Id, "menu-bg-color"));
                      current = "class='current'";
                      href = "";
                  }
            %>
            <span <%=current%> <%=style %>><a <%=href%>>
                <%=item.Title %>
            </a></span>
            <%}); %>
        </div>
        <%string currentStyle = string.Format("style='background:{0}'", WebUtils.GetUIStyle("Controls/{0}", MainMenu.CurrentItem, "menu-bg-color"));%>
        <div class="module" <%=currentStyle %>>
            <div class="inner">
                <asp:PlaceHolder ID="ModuleContainer" runat="server"></asp:PlaceHolder>
                <div class="status" <%=currentStyle %>>
                    <%=WebUtils.GetUIText("Controls/{0}", MainMenu.CurrentItem, "desc")%>
                </div>
            </div>
        </div>
    </div>
    <div id="form-container">
    </div>
</div>
